package com.supplychainapi.service;

import com.joindata.inf.common.basic.exceptions.ServiceException;
import com.supplychainapi.model.ScmTbtreetype;

/**
 * 
 * 供应商树结构
 * @author:wangziqi
 * @date:2017-09-26
 *
 */
public interface IScmTbtreebuildTypeService {

	/**
	 * 查询分类 根据type
	 * @param model
	 * @return
	 */
	ScmTbtreetype selectByType(ScmTbtreetype model) throws ServiceException;

	/**
	 * 新增分类类型
	 * @param model
	 * @return
	 */
	boolean save(ScmTbtreetype model) throws ServiceException;

	/**
	 * 修改分类类型
	 * @param model
	 * @return
	 */
	boolean update(ScmTbtreetype model) throws ServiceException;


	/**
	 * 删除分类类型
	 * @param model
	 * @return
	 */
	boolean delete(ScmTbtreetype model) throws ServiceException;

}
